﻿using ED.Common.BaseModel;
using ED.Model;

namespace ED.IService.User
{
    /// <summary>
    /// 用户信息服务
    /// </summary>
    public interface IUserService
    {
        public UserInfoRep Login(UserInfoReq req);

        /// <summary>
        /// @查询
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        public PageOut<int> Page(int req);

        /// <summary>
        /// @新增
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        public Tuple<bool,string> Add(int req);

        /// <summary>
        /// @更新
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        public Tuple<bool, string> Update(int req);

        /// <summary>
        /// @删除
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        public Tuple<bool, string> Delete(int req);
    }
}
